
<h1><span class="yiyi-st" id="yiyi-12">numpy.random.beta</span></h1>
        <blockquote>
        <p>原文：<a href="https://docs.scipy.org/doc/numpy/reference/generated/numpy.random.beta.html">https://docs.scipy.org/doc/numpy/reference/generated/numpy.random.beta.html</a></p>
        <p>译者：<a href="https://github.com/wizardforcel">飞龙</a> <a href="http://usyiyi.cn/">UsyiyiCN</a></p>
        <p>校对：（虚位以待）</p>
        </blockquote>
    
<dl class="function">
<dt id="numpy.random.beta"><span class="yiyi-st" id="yiyi-13"> <code class="descclassname">numpy.random.</code><code class="descname">beta</code><span class="sig-paren">(</span><em>a</em>, <em>b</em>, <em>size=None</em><span class="sig-paren">)</span></span></dt>
<dd><p><span class="yiyi-st" id="yiyi-14">从Beta分布绘制样本。</span></p>
<p><span class="yiyi-st" id="yiyi-15">Beta分布是Dirichlet分布的特殊情况，与Gamma分布相关。</span><span class="yiyi-st" id="yiyi-16">它具有概率分布函数</span></p>
<div class="math">
<p></p>
</div><p><span class="yiyi-st" id="yiyi-17">其中归一化B是&#x3B2;函数，</span></p>
<div class="math">
<p></p>
</div><p><span class="yiyi-st" id="yiyi-18">它经常在贝叶斯推理和秩序统计中看到。</span></p>
<table class="docutils field-list" frame="void" rules="none">
<col class="field-name">
<col class="field-body">
<tbody valign="top">
<tr class="field-odd field"><th class="field-name"><span class="yiyi-st" id="yiyi-19">参数：</span></th><td class="field-body"><p class="first"><span class="yiyi-st" id="yiyi-20"><strong>a</strong>：float</span></p>
<blockquote>
<div><p><span class="yiyi-st" id="yiyi-21">阿尔法，非负。</span></p>
</div></blockquote>
<p><span class="yiyi-st" id="yiyi-22"><strong>b</strong>：float</span></p>
<blockquote>
<div><p><span class="yiyi-st" id="yiyi-23">Beta，非负数。</span></p>
</div></blockquote>
<p><span class="yiyi-st" id="yiyi-24"><strong>size</strong>：int或tuple的整数，可选</span></p>
<blockquote>
<div><p><span class="yiyi-st" id="yiyi-25">输出形状。</span><span class="yiyi-st" id="yiyi-26">如果给定形状是例如<code class="docutils literal"><span class="pre">（m，</span> <span class="pre">n，</span> <span class="pre">k）</span></code>，则<code class="docutils literal"><span class="pre"> m</span> <span class="pre">*</span> <span class="pre">n</span> <span class="pre">*</span> <span class="pre">k</span></code></span><span class="yiyi-st" id="yiyi-27">默认值为None，在这种情况下返回单个值。</span></p>
</div></blockquote>
</td>
</tr>
<tr class="field-even field"><th class="field-name"><span class="yiyi-st" id="yiyi-28">返回：</span></th><td class="field-body"><p class="first"><span class="yiyi-st" id="yiyi-29"><strong>out</strong>：ndarray</span></p>
<blockquote class="last">
<div><p><span class="yiyi-st" id="yiyi-30">给定形状的数组，包含从Beta分布绘制的值。</span></p>
</div></blockquote>
</td>
</tr>
</tbody>
</table>
</dd></dl>
